package code.snippet

import net.liftweb.http.DispatchSnippet
import scala.xml.NodeSeq
import bs.LiftComponent

/**
 * 渲染某一个LiftComponent，宿主tag将被此component完全覆盖
 * @tparam T
 */
trait LiftComponentSnippet[T <: LiftComponent] extends RenderSnippet{
  val component: T

  override def render = {_  => component.render}
}
